import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './Router/Index'
const service = axios.create({
    baseURL: 'http://192.168.0.105:9001', // 替换为实际后端API地址
    timeout: 5000
});
import axios from 'axios';

const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
export const login = (email, pwd) => {
    return service.post('/api/login', {
        email,
        pwd
    });
};  